package org.example.subsystem;

public class RestaurantsSubsystem extends SubSystem{
    public RestaurantsSubsystem(String name) {
        super(name);
    }

    @Override
    public void sendMessage(SubSystem to, String msg) {
        System.out.println(super.getName()+"向"+to.getName()+"发送了"+msg);
        to.receive(msg);
    }
}
